package ltd.newbee.mall.service.impl;

import ltd.newbee.mall.dao.StockMapper;
import ltd.newbee.mall.entity.Stock;
import ltd.newbee.mall.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StockServiceImpl implements StockService {
    @Autowired
    StockMapper stockMapper;
    @Override
    public List<Stock> getStockByProductId(Long productId) {
        return stockMapper.getStockByProductId(productId);
    }
}
